package com.aiyan.edu.api.cms;

import com.aiyan.edu.framework.domain.cms.CmsConfig;
import com.aiyan.edu.framework.domain.cms.request.QueryConfigRequest;
import com.aiyan.edu.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @author: zqzhou
 * @create: 2019/10/17 21:56
 **/
@Api(value = "cms配置管理接口", description = "cms配置管理接口，提供页面数据模型的增删改查")
public interface CmsConfigControllerApi {

    /**
     * 查询模型数据
     *
     * @param id
     * @return
     */
    @ApiOperation("根据id查询数据模型信息")
    @ApiImplicitParam(name = "id", value = "页面id", required = true, paramType = "path", dataType = "String")
    public CmsConfig findModel(String id);

    /**
     * 分页查询配置
     *
     * @param page
     * @param size
     * @param queryConfigRequest
     * @return
     */
    @ApiOperation("分页查询配置列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page", value = "页码", required = true, paramType = "path", dataType = "int"),
            @ApiImplicitParam(name = "size", value = "每页数据条数", required = true, paramType = "path", dataType = "int")
    })
    public QueryResponseResult findList(int page, int size, QueryConfigRequest queryConfigRequest);
}
